"""
b=bytes(1)
print(b) #\x16 进制

a=bytes("你好中国abc","utf-8")
print(a)
a=bytes("你好中国abc","gbk")
print(a)
"""


print(b'\xe4\xbd\xa0\xe5\xa5\xbd\xe4\xb8\xad\xe5\x9b\xbdabc'.decode("utf-8"))
print(b'\xc4\xe3\xba\xc3\xd6\xd0\xb9\xfaabc'.decode("gbk"))